package com.gcd.gym.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gcd.gym.model.searchModel.CourseSearchModel;
import com.gcd.gym.model.searchModel.ReserveSearchModel;

import java.time.LocalDateTime;
import java.util.List;

public interface CourseService {
    // 查询课程
    Page<CourseSearchModel> findCourse(Page<CourseSearchModel> page, CourseSearchModel course);


    // 删除课程
    int deleteCourseById(List<Integer> ids);

    // 添加课程
    boolean addCourse(CourseSearchModel course);

    boolean updateCourse(CourseSearchModel course);

    List<ReserveSearchModel> memberOfCourse(Integer id);

    boolean checkIn(ReserveSearchModel  reserve);
    boolean markAbsent(ReserveSearchModel  reserve);

}
